      <tr>
        <td><label for="form_label_{$name}">{$label} : </label></td>
        <td>
          <select id="form_label_{$name}" name="{$formName}[{$name}]{if isset($multiple)}[]{/if}" {if isset($otherAttributes)}{$otherAttributes}{/if} >	  
{if isset($specialField) && $specialField == true}
{ldelim}foreach from=$relatedDocs.{$name} item=doc{rdelim}
            <option value="{ldelim}$doc[0]{rdelim}" {if isset($multiple)}{ldelim}if isset($values.{$name}){rdelim}{ldelim}foreach from=$values.{$name} item=currentvalue{rdelim}{ldelim}if $currentvalue == $doc[0]{rdelim}selected="selected"{ldelim}/if{rdelim}{ldelim}/foreach{rdelim}{ldelim}/if{rdelim}{else}{ldelim}if isset($values.{$name}) && $values.{$name} == "$doc[0]"{rdelim}selected="selected"{ldelim}/if{rdelim}{/if} {ldelim}if isset($doc[2]){rdelim}{ldelim}$doc[2]{rdelim}{ldelim}/if{rdelim}>{ldelim}$doc[1]{rdelim}</option>
{ldelim}/foreach{rdelim}
{else}
{if isset($subElements) && count($subElements) > 0}
{foreach from=$subElements item=option}
            <option value="{$option.value}" {if isset($multiple)}{ldelim}if isset($values.{$name}){rdelim}{ldelim}foreach from=$values.{$name} item=currentvalue{rdelim}{ldelim}if $currentvalue == {$option.value}{rdelim}selected="selected"{ldelim}/if{rdelim}{ldelim}/foreach{rdelim}{ldelim}/if{rdelim}{else}{ldelim}if isset($values.{$name}) && $values.{$name} == "{$option.value}"{rdelim}selected="selected"{ldelim}/if{rdelim}{/if} {if isset($option.subOtherAttributes)}{$option.subOtherAttributes}{/if}>{$option.label}</option>
{/foreach}
{/if}
{/if}
          </select>
        </td>
        <td>{if $hasCheckers}{ldelim}if isset($errors.{$name}){rdelim}<span>{ldelim}$errors.{$name}{rdelim}</span>{ldelim}/if{rdelim}{/if}</td>
      </tr>
